//////////////////////////////////////////////////////////////////////////
// FileName:DataCache
// CreateBy:DragonXiong
// CreateDate:2009-8-19
// Description:
//		Class DataCache
//      
// Modify Log:
//	
// Copyright:ASL-MIS
/////////////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;

namespace Auto.Data.BusMan.DALFactory
{
    public class DataCache
    {
        /// <summary>
        /// Get Current App Appointed CacheKey's Cache Value
        /// </summary>
        /// <param name="CacheKey"></param>
        /// <returns></returns>
        public static object GetCache(string CacheKey)
        {
            System.Web.Caching.Cache objCache = HttpRuntime.Cache;
            return objCache[CacheKey];
        }

        /// <summary>
        /// Set Current App Appointed CacheKey's Cache Value
        /// </summary>
        /// <param name="CacheKey"></param>
        /// <param name="objObject"></param>
        public static void SetCache(string CacheKey, object objObject)
        {
            System.Web.Caching.Cache objCache = HttpRuntime.Cache;
            objCache.Insert(CacheKey, objObject);
        }
    }
}
